import { IWonewSer } from "@/typing";
import { NestExpressApplication } from "@nestjs/platform-express";

class GlobalService {
  store: { [prop: string]: any } = {};

  get app(): NestExpressApplication {
    return this.store.app;
  }

  set app(app: NestExpressApplication) {
    this.store.app = app;
  }

  get appUrl(): string {
    return this.store.appUrl;
  }

  set appUrl(url: string) {
    this.store.appUrl = url;
  }
}

const IGlobal = new GlobalService();

export default IGlobal;
